package vNES;

import java.io.File;
import java.util.HashMap;

public class Globals {

  public static double CPU_FREQ_NTSC = 1789772.5d;
  public static double CPU_FREQ_PAL = 1773447.4d;
  public static int preferredFrameRate = 60;
  // Microseconds per frame:
  public static int frameTime = 1000000 / preferredFrameRate;
  // What value to flush memory with on power-up:
  public static short memoryFlushValue = 0xFF;
  public static final boolean debug = false;
  public static final boolean fsdebug = false;
  public static boolean appletMode = true;
  public static boolean disableSprites = false;
  public static boolean timeEmulation = true;
  public static boolean palEmulation;
  public static boolean enableSound = true;
  public static boolean focused = false;
  public static boolean PPUDebug = false;
  public static NES nes;
  public final static HashMap<String, Object> resources = new HashMap();
  public static HashMap<String, String> settings;
  public static final String STATE_PREFIX = "http://www.gametape.info/state/name/";
  public static final String TAPE_PREFIX = "http://www.gametape.info/tape/";
  public static final String ROM_PREFIX = "http://www.gametape.info/static_media/rom/";
  //public static final File gametapeDirectory = new File (System.getProperty("user.home") + File.separator+ (".gametape"));
  //public static final File settingsFile = new File(gametapeDirectory +File.separator+ "settings.srl");
  public static final int downloadThreads = 4;
  public static final int STATE_SIZE_LIMIT = 32768;
  public static void println(String s) {
    nes.getGui().println(s);
  }
  public static final boolean LOCAL = false;
}